package com.gpframework.common.utils.poi;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @ClassName GpCustomerVo
 * @Author gpframework
 * @Date 2023-05-24
 * @Version 1.0.0
 * @Description 导入Excel实体类
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
public class XssfValidations {

    @ApiModelProperty("数据列表")
    private String[] textlist;
    @ApiModelProperty("开始行")
    private int firstRow;
    @ApiModelProperty("结束行")
    private int endRow;
    @ApiModelProperty("开始列")
    private int endCol;
    @ApiModelProperty("结束列")
    private int firstCol;

    public XssfValidations(int firstCol, String[] textlist) {
        this.firstRow = 1;
        this.endRow = ExcelUtil.SHEETSIZE;
        this.firstCol = firstCol;
        this.endCol = firstCol;
        this.textlist = textlist;
    }

    public XssfValidations(int firstRow, int firstCol, String[] textlist) {
        this.firstRow = firstRow;
        this.endRow = ExcelUtil.SHEETSIZE;
        this.firstCol = firstCol;
        this.endCol = firstCol;
        this.textlist = textlist;
    }

    public XssfValidations(int firstRow, int firstCol, int endCol, String[] textlist) {
        this.firstRow = firstRow;
        this.endRow = ExcelUtil.SHEETSIZE;
        this.firstCol = firstCol;
        this.endCol = endCol;
        this.textlist = textlist;
    }
    public XssfValidations(int firstRow, int endRow, int firstCol, int endCol, String[] textlist) {
        this.firstRow = firstRow;
        this.endRow = endRow;
        this.firstCol = firstCol;
        this.endCol = endCol;
        this.textlist = textlist;
    }
}
